package business.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;

import service.exceptions.DBWritingException;
import service.exceptions.NotHereException;
import business.entities.*;


public interface ArticleMgt extends Remote {

	void addArticle(String name, String desc, int price, String ingr,
			String cat) throws RemoteException, DBWritingException;
	
	void deleteArticle(Article toDelete) throws RemoteException, DBWritingException;

	Article[] getArticles() throws RemoteException;
	
	void modifyArticle(String name, String desc, int price, String ingr,
			String cat, int primaryKey)throws RemoteException, DBWritingException, NotHereException;

}
